﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ERPStore.Cart.Repositories.Datas
{
    public class Cart
    {
		public Cart()
		{
		}
        public int Id { get; set; }
        public System.DateTime CreationDate { get; set; }
        public string VisitorId { get; set; }
		public int CartStateId { get; set; }
        public int? CustomerId { get; set; }
        public int? CustomerPersonId { get; set; }
        public string Message { get; set; }
        public bool AllowPartialDelivery { get; set; }
        public bool IsPresent { get; set; }
		public string CustomerDocumentReference { get; set; }
        public System.DateTime LastUpdate { get; set; }
        public string Code { get; set; }
        public int? DeliveryAddressId { get; set; }
        public long? ShippingFeeAmount { get; set; }
        public int? ShippingFeeTaxRate { get; set; }
        public int? ConvertedEntityId { get; set; }
        public DateTime? ConversionDate { get; set; }
        public int? ConveyorId { get; set; }
        public bool AcceptTermsAndConditions { get; set; }
        public string LastPage { get; set; }
        public int? FromEntityId { get; set; }
        public int? FromMetaEntityId { get; set; }
        public string PaymentModeName { get; set; }
        public string LeadSourceName { get; set; }
        public string LeadSourceId { get; set; }
        public byte[] RevisionId { get; set; }
        public bool ShippingFeeLocked { get; set; }
		public string MessageForConveyor { get; set; }

		public virtual ICollection<CartItem> Items { get; set; }
    }
}
